package tr.edu.yildiz.ce.app_manager.ws.impl;

import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.beans.factory.annotation.Qualifier;

import tr.edu.yildiz.ce.app_manager.dao.ProxyDao;
import tr.edu.yildiz.ce.app_manager.dao.impl.hibernate.ProxyDaoImpl;
import tr.edu.yildiz.ce.app_manager.ws.HelloWorld;

@WebService(name="helloworld",serviceName="helloworld",endpointInterface="tr.edu.yildiz.ce.app_manager.ws.HelloWorld")
@Configurable
public class HelloWorldImpl implements HelloWorld {

	@Autowired
	@Qualifier("proxyDaoImpl")
	ProxyDao proxyDao;
	
	public String sayHi(String name) {
		proxyDao.listAll();
		return "Hello " + name;
	}

}
